<template>
	<view class="padding bg-white">
		<view class="cu-bar bg-white">
			<view class="text-content">
				<text class="cuIcon-titles text-green"></text>
				<text>{{help.helpTitle}}</text>
			</view>
		</view>
		<u-parse :content="help.helpDetail"></u-parse>
	</view>
</template>

<script>
	
	import { helpDetail } from '@/api/cms.js'
	
	export default {
		data() {
			return {
				id: 0,
				help: {},
			}
		},
		onLoad(options) {
			this.id = options.id
		},
		onShow() {
			this.getHelpDetail();
		},
		methods: {
			getHelpDetail() {
				helpDetail({
					helpId: this.id
				}).then(res => {
					let help = res.data;
					this.help = help;
					uni.setNavigationBarTitle({
						title: help.helpTitle
					})
				})
			}
		}
	}
</script>

<style>

</style>
